package com.eamois.action.graph;

import java.util.Collection;

import com.eamois.action.BaseAction;
import com.eamois.domain.graph.GraphLine;
import com.eamois.domain.graph.GraphTemplate;
import com.eamois.service.graph.GraphLineService;
import com.eamois.util.ServiceFactory;

public class GraphLineAction extends BaseAction {
	private GraphLineService graphLineService;

	public GraphLineAction() {
		setGraphLineService((GraphLineService) ServiceFactory.getInstance()
				.getBean("graphLineService"));
	}
	
	public Collection<GraphLine> findGraphLineByTemplate(GraphTemplate graphTemplate) {
		return this.getGraphLineService().findGraphLineByTemplate(graphTemplate);
	}

	public Collection<GraphLine> findPageLines(GraphTemplate graphTemplate) {
		return this.getGraphLineService().findPageLines(graphTemplate);
	}
	public void saveGraphLine(GraphLine graphLine) {
		getGraphLineService().save(graphLine);
	}

	public void removeGraphLine(GraphLine graphLine) {
		getGraphLineService().remove(graphLine);
	}

	public GraphLineService getGraphLineService() {
		return graphLineService;
	}

	public void setGraphLineService(GraphLineService graphLineService) {
		this.graphLineService = graphLineService;
	}

}
